
:root{
    --lt-rgb:112.520718,44.062154,249.437846;
    --lt-border-color: var(--gray-300);
}

.container{
    max-width: 99% !important;
}

/* * {
    scrollbar-width: auto;
} */

/* .list-sidebar > div:last-child{
    display: none;
} */

/* header start */
.page-head{
    /* background-image:radial-gradient(circle, var(--gray-100) 30%,transparent 0),
    radial-gradient(circle, var(--gray-100) 30%,transparent 0);
    background-size: 7px 7px; */
    background: linear-gradient(to right, var(--violet-100), var(--violet-50));
}
#navbar-breadcrumbs a::before{
    content: url("data: image/svg+xml;utf8, <svg width='6' height='8' viewBox='0 0 6 8' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1.25 7.5L4.75 4L1.25 0.5' stroke='white' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
#navbar-breadcrumbs a{
    color: white;
}
#navbar-breadcrumbs li.disabled a {
    color: var(--gray-400);
    pointer-events: none;
}
.navbar .vertical-bar {
    color: white;
}
.navbar .navbar-nav .nav-link {
    color: white;
}
.navbar .navbar-nav .es-icon {
    /* fill: var(--icon-stroke); */
    /* stroke: var(--icon-fill); */
    fill: white !important;
    stroke: white !important;
}
.sticky-top header {
    /* background: linear-gradient(to right, var(--purple-700) 56%, var(--violet-600)); */
    background: linear-gradient(to bottom, var(--violet-700), var(--charts-axis-line-color));
}
/* header end */

/* hide report view: Get more insights with Frappe Insights →  */
.page-content .layout-side-section .list-sidebar > div:last-child:not(.desk-sidebar){
    display: none;
}


/* 子表max=10字段解除限制 start */
/* .form-grid {
	overflow-x: auto;
}
.grid-heading-row {
    background-color: transparent;
}
.grid-heading-row .data-row.row > div{
    background-color: var(--subtle-fg);
    border-bottom: 1px solid var(--table-border-color);
}
.data-row.row{
	display: flex;
	flex-wrap: nowrap;
}
.row-index {
    padding: 10px 0;
	flex: 0 0 16.667%;
}
.form-grid-container .data-row.row > div:last-child {
    flex: 1 0 4%;
    padding: 8px;
    border-bottom: 1px solid var(--table-border-color);
}
.row-check {
	padding: 10px 10px !important;
	flex: 0 0 5%;
}
.row-index {
	flex: 0 0 5%;
}
.grid-row > .row .col.edit:last-child {
	min-width: 10.667%;
}
.col-xs-3:not(:last-child) {
	flex: 0 0 23%;
	max-width: 33.333333%;
}
.col-xs-4 {
	flex: 0 0 30%;
	max-width: 40%;
}
.grid-body .editable-row .checkbox{
    margin-top: var(--margin-sm);
}
.data-row .col{
    border-right: 1px solid var(--table-border-color);
    border-bottom: 1px solid var(--table-border-color);
}

.grid-row{
    border-bottom: 0px;
}
.grid-row > .row .col .form-group{
    border-bottom: 1px solid var(--table-border-color);
} */
.form-in-grid {
    position: absolute;
    width: 100%;
    top: 0px;
    border: 2px dashed var(--gray-400);
}
.dt-cell--highlight {
    background-color: var(--gray-100);
}
.datatable .dt-cell--focus .dt-cell__content {
    /* border-color: var(--gray-300); */
    border-color: rgb(var(--lt-rgb)) !important;
    font-weight: bold;
}
/* end */
 

/* 主页面板 start */
.widget-body > a:hover,
.ce-block__content .widget.number-widget-box:hover,
.ce-block__content .widget.shortcut-widget-box:hover{
    background-color: var(--gray-100);
    font-weight: bold;
}
.ce-block__content .widget.links-widget-box {
    border: 1px solid var(--gray-200);
}
.page-content .layout-side-section{
    /* background: var(--purple-50); */
    background-color: rgba(249,240,255,.62);
    border-radius: var(--border-radius-lg);
}
.codex-editor__redactor .widget.quick-list-widget-box{
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
}

.sidebar-item-container .item-anchor{
    padding: 7px 0 !important;
}
.sidebar-item-container svg{
    width: 30px !important;
    height: 25px !important;
}
.sidebar-item-container .sidebar-item-label{
    display: flex;
    align-items: center;
    font-size: .9rem;
}
.sidebar-item-container svg use,
.desk-sidebar-item .sidebar-item-icon svg use{
    fill: #84fab0;
}
/* 主页面板 end */

/* 聚焦 start */
input.form-control:focus,
select.form-control:focus,
.dt-filter:focus.dt-input:focus,
.control-input-wrapper textarea.form-control:focus,
.ql-container:hover
{
    border-image-source: radial-gradient(50% 170%, transparent 102%, transparent 100%, var(--purple-400) 100%) !important;
    border-image-slice: .5 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-image-outset: 5px 4px !important;
    /* pointer-events: none; */
    /* transition: .1s; */
}
.desk-sidebar-item.standard-sidebar-item.selected{
    border-image-source: radial-gradient(51% 110%, transparent 103%, transparent 100%, var(--purple-400) 100%) !important;
    border-image-slice: .5 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-image-outset: 5px 4px !important;
    font-weight: bold;
}
.sidebar-item-container.is-draggable span:hover{
    font-weight: bold;
}
.theme-grid .selected .background {
    border-image-source: radial-gradient(57% 62%, transparent 110%, transparent 100%, var(--purple-400) 100%) !important;
    border-image-slice: .5 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-image-outset: 6px 5px !important;
}
/* 聚焦 end */

/* form 视图 start */
.layout-main .layout-main-section
{
    border: 1px solid var(--lt-border-color) !important;
}
.std-form-layout > .form-layout > .form-page{
    border: none;
}
.layout-main-section.frappe-card .page-form{
    border-bottom: 1px solid var(--lt-border-color);
}
.form-page .form-tabs-list,
.form-layout .row.form-section.card-section.visible-section:not(:nth-last-child(1)){
    border-bottom: 1px solid var(--lt-border-color);
}
.form-footer {
    background-color: var(--card-bg);
}
.form-page .form-tabs-list li:hover{
    background: var(--gray-200);
    font-weight: bold;
    border-radius: var(--border-radius-sm);
}
.row.form-section.card-section.visible-section div.section-head.collapsible:hover,
.row.form-dashboard-section.form-links div.section-head.collapsible:hover,
.row.form-dashboard-section.custom div.section-head.collapsible:hover{
    background: var(--gray-50);
    color: var(--success);
}
.form-page > #form-tabs li:hover {
    background: var(--purple-300) !important;
    font-weight: bold !important;
}
.form-tabs-list .form-tabs .nav-item .nav-link.active{
    color: var(--success) !important;
    border-bottom: 2px solid var(--success) !important;
}
.document-link .document-link-badge:hover{
    background-color: var(--gray-300) !important;
    font-weight: bold !important;
}
/* form 视图 end */

/* button start */
.custom-actions .inner-group-button .btn.btn-primary,
.custom-actions .btn.btn-primary,
.standard-actions .btn.btn-primary{
    /* background-color: var(--success) !important; */
    background-color: rgba(var(--lt-rgb), .9) !important;
    color: white;
}
.btn.btn-primary:active{
    /* background-color: var(--green) !important; */
    background-color: rgba(var(--lt-rgb), .76) !important;
}
.btn.btn-primary:focus{
    /* border: 1px solid var(--success) !important; */
    background-color: rgba(var(--lt-rgb), .76) !important;
}
/* .page-actions .btn.btn-secondary{
    background-color: var(--warning) !important;
} */
/* button end */

[data-theme="dark"]{
    .sticky-top header {
        background: linear-gradient(to right, var(--purple-700) 56%, var(--violet-600));
        /* background: linear-gradient(to bottom, rgba(var(--bd-violet-rgb), 1), rgba(var(--bd-violet-rgb), 0.95)); */
    }
    .page-head{
        background: linear-gradient(to right, var(--gray-900), var(--gray-800));
    }
    .widget-body > a:hover,
    .ce-block__content .widget.number-widget-box:hover,
    .ce-block__content .widget.shortcut-widget-box:hover{
        background-color: var(--gray-700);
        font-weight: bold;
    }
    .sidebar-item-container svg use,
    .desk-sidebar-item .sidebar-item-icon svg use{
        fill: #667eea;
    }
    .ce-block__content .widget.links-widget-box {
        border: 1px solid var(--gray-700);
    }
    .page-content .layout-side-section{
        /* background: var(--purple-900); */
        background-color: #150e1c;
    }
    .codex-editor__redactor .widget.quick-list-widget-box{
        border: 1px solid var(--gray-700);
    }
    /* grid start */
    .dt-cell--highlight {
        background-color: var(--gray-700);
    }
    .dt-cell{
        border: 1px solid var(--gray-700);
    }
    /* grid start */
    /* form 视图 start */
    .layout-main .layout-main-section
    {
        border: 1px solid var(--gray-700) !important;
    }
    .layout-main-section.frappe-card .page-form{
        border-bottom: 1px solid var(--gray-700);
    }
    .form-page .form-tabs-list,
    .form-layout .row.form-section.card-section.visible-section:not(:nth-last-child(1)){
        border-bottom: 1px solid var(--gray-700);
    }
    .form-page .form-tabs-list li:hover,
    .row.form-section.card-section.visible-section div.section-head.collapsible:hover,
    .row.form-section.card-section.visible-section div.section-head.collapsible:hover,
    .row.form-dashboard-section.form-links div.section-head.collapsible:hover,
    .row.form-dashboard-section.custom div.section-head.collapsible:hover,
    .document-link .document-link-badge:hover{
        background-color: var(--gray-700) !important;
    }
    /* form 视图 end */
}
